﻿using JY.Wpf.Core.Enums;

namespace JY.Wpf.Core.Events
{
    /// <summary>
    /// 消息事件模型
    /// </summary>
    public class MessageEvent
    {
        #region # 构造器

        /// <summary>
        /// 构造器
        /// </summary>
        /// <param name="message">消息内容</param>
        /// <param name="messageType">消息类型</param>
        /// <param name="isNeedIoWarning">是否需要报警灯</param>
        public MessageEvent(string message, MessageType messageType = MessageType.Success,bool isNeedIoWarning=false)
        {
            this.Message = message;
            this.MessageType = messageType;
            this.IsNeedIoWarning = isNeedIoWarning;
        }

        #endregion

        /// <summary>
        /// 消息类型
        /// </summary>
        public MessageType MessageType { get; set; }
        /// <summary>
        /// 是否需要报警灯
        /// </summary>
        public bool IsNeedIoWarning { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public string Message { get; set; }
    }
}
